package coml.jiyun.hp.designmode;

//1、静态内部类
public class SingleTon4 {

    private SingleTon4(){}

    public static SingleTon4 getInstance(){
        return SingleHolder.singleTon4;
    }

    public static class SingleHolder{
        private static SingleTon4 singleTon4= new SingleTon4();
    }
}